home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
a_utils
/
ffccflow
/
ffccflow.lha
/
ffccc+flow
/
ffccc
/
GETINT.f
< prev
next >
Wrap
Text File
|
1992-07-31
|
843b
|
24 lines
SUBROUTINE GETINT(STRING,ICC1,ICC2,KFCH,KLCH,NN)
*-----------------------------------------------------------------------
*
* routine to extract one positive integer from a BCD string.
* input
* STRING input string
* ICC1 starting pos. for scan
* ICC2 end - - -
* output
* KFCH pos. of first character of integer in STRING,
* or 0 if no integer found.
* KLCH pos. of last ch. in STRING.
* NN integer in integer format. (set to zero when none found)
*
*-----------------------------------------------------------------------
CHARACTER*(*) STRING
NN=0
CALL CHRTYP(1,STRING,ICC1,ICC2,.FALSE.,KFCH,ILEV)
IF(KFCH.NE.0) THEN
CALL SKIPTP(1,STRING,KFCH,ICC2,.FALSE.,KLCH,ILEV)
NN=NEXTIN(STRING,KFCH,KLCH)
ENDIF
END